Bring forward uncontested change from NEW_STRINGS work to fix non-NEW_STRINGS build...
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 20 Sep 2013 20:22:32 +0000 (20:22 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 20 Sep 2013 20:22:32 +0000 (20:22 +0000)
gpsbabel/waypt.cc

index 266378346cc72f90f6940f9d4d16c4c188f49aa7..027d3f4a60eb2147f00677dc5f06f1ca51849012 100644 (file)
@@ -384,7 +384,7 @@ waypt_compute_bounds(bounds* bounds)
 }
 
 waypoint*
-find_waypt_by_name(const char* name)
+find_waypt_by_name(const QString& name)
 {
 #if NEWQ
   foreach(waypoint* waypointp, waypt_list) {
@@ -395,7 +395,7 @@ find_waypt_by_name(const char* name)
   QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
     waypointp = (waypoint*) elem;
 #endif
-    if (0 == strcmp(waypointp->shortname, name)) {
+    if (waypointp->shortname == name) {
       return waypointp;
     }
   }